from  concurrent.futures import ThreadPoolExecutor

def func(name):
	for _ in range(6):
		print('*'*10,_,'*'*10)
	return name

def call_back(value):
	print('*'*10,value.result())
		
if __name__ == '__main__':
	with ThreadPoolExecutor(10) as t:
		t.submit(func,'屌毛').add_done_callback(call_back)
		t.submit(func,'沙雕').add_done_callback(call_back)
		